blob: 439c7ba83c2d791e3a747b32e6336c37f8817a17 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
import { Metadata } from 'next';
import ApprovalManager from '@/components/knox/approval/ApprovalManager';
import { findUserByEmail } from '@/lib/users/service';
import { getServerSession } from 'next-auth/next';
export const metadata: Metadata = {
title: 'Knox 결재 시스템 | Admin',
description: 'Knox API를 사용한 결재 시스템',
};
export default async function ApprovalTestPage() {
const session = await getServerSession();
const currentUser = await findUserByEmail(session?.user?.email ?? '');
return (
<div className="container mx-auto py-8">
<div className="space-y-6">
{/* 페이지 헤더 */}
<div className="space-y-2">
<h1 className="text-3xl font-bold tracking-tight">Knox 결재 시스템</h1>
<p className="text-muted-foreground">
Knox API를 사용한 결재 시스템 컴포넌트입니다.
</p>
</div>
{/* 결재 관리자 컴포넌트 */}
<ApprovalManager
defaultTab="submit"
currentUser={currentUser}
/>
</div>
</div>
);
}
|